
#include "Texture.h"

extern "C" int wrLoadTexture( const char* name, int* _width, int* _height );

Texture::Texture()
{
}

Texture::Texture(const char* name)
{
	load(name);
}

Texture::~Texture()
{
}

void Texture::load(const char* name)
{
    int width, height;
	texture_id = wrLoadTexture(name, &width, &height);
    m_vSize = Vector2(width, height);
}

void Texture::activate() const
{
	glBindTexture(GL_TEXTURE_2D, texture_id);
}
